﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 工时 AITDTO DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class MOWorkHourAITDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public MOWorkHourAITDTOData()
		{
			initData();
		}
		private void initData()
		{
		
					SetupMachineHours=0m; 
					SetupLaborHours=0m; 
					RunLaborHours=0m; 
		
		
		
		
					RunMachineHours=0m; 
					IdleHours=0m; 
		
		
		

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        			if (this.WorkHourUOM != null) 
			{
				this.WorkHourUOM.DoSerializeKeyList(dict);
			}
	        	        	        	        			if (this.Org != null) 
			{
				this.Org.DoSerializeKeyList(dict);
			}
	        			if (this.MO != null) 
			{
				this.MO.DoSerializeKeyList(dict);
			}
	        			if (this.ItemMasterNum != null) 
			{
				this.ItemMasterNum.DoSerializeKeyList(dict);
			}
	        	        	        	        			if (this.SrcDoc != null) 
			{
				this.SrcDoc.DoSerializeKeyList(dict);
			}
	        			if (this.MOOperation != null) 
			{
				this.MOOperation.DoSerializeKeyList(dict);
			}
	        			if (this.WorkCenter != null) 
			{
				this.WorkCenter.DoSerializeKeyList(dict);
			}

		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public MOWorkHourAITDTOData(  ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData workHourUOM  , System.Decimal setupMachineHours  , System.Decimal setupLaborHours  , System.Decimal runLaborHours  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData org  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData mO  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData itemMasterNum  , System.String businessDate  , System.Decimal runMachineHours  , System.Decimal idleHours  , ufida.u9.ait.openapi.CopyOfMOSourceDocData srcDoc  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData mOOperation  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData workCenter  )
		{
			initData();
			this.WorkHourUOM = workHourUOM;
			this.SetupMachineHours = setupMachineHours;
			this.SetupLaborHours = setupLaborHours;
			this.RunLaborHours = runLaborHours;
			this.Org = org;
			this.MO = mO;
			this.ItemMasterNum = itemMasterNum;
			this.BusinessDate = businessDate;
			this.RunMachineHours = runMachineHours;
			this.IdleHours = idleHours;
			this.SrcDoc = srcDoc;
			this.MOOperation = mOOperation;
			this.WorkCenter = workCenter;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 工时单位
		/// 工时 AITDTO.Misc.工时单位
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_workHourUOM ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData WorkHourUOM
		{
			get	
			{	
				return m_workHourUOM ;
			}
			set	
			{	
				m_workHourUOM = value ;	
			}
		}
			
		

		/// <summary>
		/// 机器准备工时
		/// 工时 AITDTO.Misc.机器准备工时
		/// </summary>
		private System.Decimal m_setupMachineHours ;
		[DataMember(IsRequired=false)]
		public System.Decimal SetupMachineHours
		{
			get	
			{	
				return m_setupMachineHours ;
			}
			set	
			{	
				m_setupMachineHours = value ;	
			}
		}
			
		

		/// <summary>
		/// 人工准备工时
		/// 工时 AITDTO.Misc.人工准备工时
		/// </summary>
		private System.Decimal m_setupLaborHours ;
		[DataMember(IsRequired=false)]
		public System.Decimal SetupLaborHours
		{
			get	
			{	
				return m_setupLaborHours ;
			}
			set	
			{	
				m_setupLaborHours = value ;	
			}
		}
			
		

		/// <summary>
		/// 人工加工工时
		/// 工时 AITDTO.Misc.人工加工工时
		/// </summary>
		private System.Decimal m_runLaborHours ;
		[DataMember(IsRequired=false)]
		public System.Decimal RunLaborHours
		{
			get	
			{	
				return m_runLaborHours ;
			}
			set	
			{	
				m_runLaborHours = value ;	
			}
		}
			
		

		/// <summary>
		/// 组织
		/// 工时 AITDTO.Misc.组织
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_org ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Org
		{
			get	
			{	
				return m_org ;
			}
			set	
			{	
				m_org = value ;	
			}
		}
			
		

		/// <summary>
		/// 生产订单
		/// 工时 AITDTO.Misc.生产订单
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_mO ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData MO
		{
			get	
			{	
				return m_mO ;
			}
			set	
			{	
				m_mO = value ;	
			}
		}
			
		

		/// <summary>
		/// 料号
		/// 工时 AITDTO.Misc.料号
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_itemMasterNum ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ItemMasterNum
		{
			get	
			{	
				return m_itemMasterNum ;
			}
			set	
			{	
				m_itemMasterNum = value ;	
			}
		}
			
		

		/// <summary>
		/// 业务日期
		/// 工时 AITDTO.Misc.业务日期
		/// </summary>
		private System.String m_businessDate ;
		[DataMember(IsRequired=false)]
		public System.String BusinessDate
		{
			get	
			{	
				return m_businessDate ;
			}
			set	
			{	
				m_businessDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 机器加工工时
		/// 工时 AITDTO.Misc.机器加工工时
		/// </summary>
		private System.Decimal m_runMachineHours ;
		[DataMember(IsRequired=false)]
		public System.Decimal RunMachineHours
		{
			get	
			{	
				return m_runMachineHours ;
			}
			set	
			{	
				m_runMachineHours = value ;	
			}
		}
			
		

		/// <summary>
		/// 空闲工时
		/// 工时 AITDTO.Misc.空闲工时
		/// </summary>
		private System.Decimal m_idleHours ;
		[DataMember(IsRequired=false)]
		public System.Decimal IdleHours
		{
			get	
			{	
				return m_idleHours ;
			}
			set	
			{	
				m_idleHours = value ;	
			}
		}
			
		

		/// <summary>
		/// 来源单据
		/// 工时 AITDTO.Misc.来源单据
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfMOSourceDocData m_srcDoc ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfMOSourceDocData SrcDoc
		{
			get	
			{	
				return m_srcDoc ;
			}
			set	
			{	
				m_srcDoc = value ;	
			}
		}
			
		

		/// <summary>
		/// 订单工序
		/// 工时 AITDTO.Misc.订单工序
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_mOOperation ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData MOOperation
		{
			get	
			{	
				return m_mOOperation ;
			}
			set	
			{	
				m_mOOperation = value ;	
			}
		}
			
		

		/// <summary>
		/// 工作中心
		/// 工时 AITDTO.Misc.工作中心
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_workCenter ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData WorkCenter
		{
			get	
			{	
				return m_workCenter ;
			}
			set	
			{	
				m_workCenter = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																										
		#endregion 
	} 	
}
